package comday07.itheima03;

import java.util.Date;


public class KviUser {
	
	private String loginId;
	
	private String name;

	private String password;
	
	private String freshPwd;
	
	private Long orgNo;
	
	private String orgType;
	
	private Integer loginTimes = 0;
	private String lastLoginIp;
	private Date lastLoginTime;
	private Date lastLogoutTime;

	/** default constructor */
	public KviUser() {
	}

	/** minimal constructor */
	public KviUser(String orgType,Long orgNo, String name, String password) {
		this.orgType = orgType;
		this.orgNo = orgNo;
		this.name = name;
		this.password = password;
	} 
	
	public Long getOrgNo() {
		return orgNo;
	}

	public void setOrgNo(Long orgNo) {
		this.orgNo = orgNo;
	}

	public String getOrgType() {
		return orgType;
	}

	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFreshPwd() {
		return this.freshPwd;
	}

	public void setFreshPwd(String freshPwd) {
		this.freshPwd = freshPwd;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		// this.password = MD5.encode(password);
		this.password = password;
	}

	public Integer getLoginTimes() {
		return loginTimes;
	}

	public void setLoginTimes(Integer loginTimes) {
		this.loginTimes = loginTimes;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Date getLastLogoutTime() {
		return lastLogoutTime;
	}

	public void setLastLogoutTime(Date lastLogoutTime) {
		this.lastLogoutTime = lastLogoutTime;
	}
}
